package com.qen.sheji.guanchazhe;

import cn.hutool.core.lang.Console;

public class ObserverImpl implements Observer {

    private String name;

    public ObserverImpl(String name) {
        this.name = name;
    }

    @Override
    public void notify(Object obj) {
        Console.log(name + ":" + obj.toString());
    }
}
